package com.carpedil.movie.controller;

import com.carpedil.movie.service.MovService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/** @author Administrator */
@RestController
public class MovieController {

  @Autowired MovService movService;

  @GetMapping("/check/{movieName}")
  public String check(@PathVariable("movieName") String movieName) {
    return movService.check(movieName);
  }
}
